package org.example.mapstruct.common.dto;

import lombok.Builder;
import lombok.Data;
import org.example.mapstruct.common.annotation.Default;

import java.beans.ConstructorProperties;


@Data
@Builder
public class NovelDto {
    private final String bookName;
    private final Double price;
    private String author;

    @Default
    @ConstructorProperties({"bookName", "price", "author"})
    public NovelDto(String book, Double price, String author) {
        this.bookName = book;
        this.price = price;
        this.author = "author";
    }


    public NovelDto(String bookName, Double price) {
        this.bookName = bookName;
        this.price = price;
    }
}
